package com.springdemo.shape;

import java.util.List;

public class Square implements Shape {

	private Point pointA;
	private Point pointB;
	private Point pointC;
	private Point pointD;
	private List<Point> points;

	public Square() {
		
	}

	public Square(Point pointA, Point pointB, Point pointC, Point pointD) {
		this.pointA = pointA;
		this.pointB = pointB;
		this.pointC = pointC;
		this.pointD = pointD;
	}

	public void draw() {
		System.out.println("Drawing Square with Co-ordinates" + getPointA()
				+ ", " + getPointB() + ", " + getPointC() + ", " + getPointD());

		System.out.println("Drawing Square with Co-ordinates:");
		if (points != null) {
			for (Point point : this.points) {
				System.out.println("Point:" + point);
			}
		}
	}

	public List<Point> getPoints() {
		return points;
	}

	public void setPoints(List<Point> points) {
		this.points = points;
	}

	public Point getPointA() {
		return pointA;
	}

	public void setPointA(Point pointA) {
		this.pointA = pointA;
	}

	public Point getPointB() {
		return pointB;
	}

	public void setPointB(Point pointB) {
		this.pointB = pointB;
	}

	public Point getPointC() {
		return pointC;
	}

	public void setPointC(Point pointC) {
		this.pointC = pointC;
	}

	public Point getPointD() {
		return pointD;
	}

	public void setPointD(Point pointD) {
		this.pointD = pointD;
	}
}
